package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 拼团明细对象 super_group_product_detail
 * 
 * @author xjf
 * @date 2025-08-14
 */
public class SuperGroupProductDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品拼团明细表 */
    @Excel(name = "商品拼团明细表")
    private Long id;

    /** 关联拼团表 */
    @Excel(name = "关联拼团表")
    private Long groupProductId;

    /** 关联用户表 */
    @Excel(name = "关联用户表")
    private Long userId;

    /** 逻辑删除判断 */
    private Long del;
    // 嵌套实体
    private SuperGroupProduct product;
    private SuperGroupActivity activity;
    // 聚合字段（可选）
    private String userIds;
    private  Integer size;

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getUserIds() {
        return userIds;
    }

    public void setUserIds(String userIds) {
        this.userIds = userIds;
    }

    public SuperGroupActivity getActivity() {
        return activity;
    }

    public void setActivity(SuperGroupActivity activity) {
        this.activity = activity;
    }

    public SuperGroupProduct getProduct() {
        return product;
    }

    public void setProduct(SuperGroupProduct product) {
        this.product = product;
    }


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setGroupProductId(Long groupProductId) 
    {
        this.groupProductId = groupProductId;
    }

    public Long getGroupProductId() 
    {
        return groupProductId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupProductId", getGroupProductId())
            .append("userId", getUserId())
            .append("del", getDel())
                .append("product", getProduct())
                .append("activity", getActivity())
                .append("userIds", getUserIds())
                .append("size", getSize())
            .toString();
    }
}
